package cn.yj.syslog.event;

import org.springframework.context.ApplicationEvent;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 永健
 * @since 2022-01-21 09:27
 */
public class ErrorResponseEvent extends ApplicationEvent {

    private HttpServletRequest request;
    private String errorResult;

    public ErrorResponseEvent(HttpServletRequest request, String errorResult) {
        super(errorResult);
        this.request = request;
        this.errorResult = errorResult;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public ErrorResponseEvent setRequest(HttpServletRequest request) {
        this.request = request;
        return this;
    }

    public String getErrorResult() {
        return errorResult;
    }

    public ErrorResponseEvent setErrorResult(String errorResult) {
        this.errorResult = errorResult;
        return this;
    }
}
